package ynu.edu.order.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "物流信息表单DTO")
public class LogisticsFormDTO {
    
    @ApiModelProperty("物流单号")
    @NotBlank(message = "物流单号不能为空")
    private String logisticsNumber;
    
    @ApiModelProperty("物流公司名称")
    @NotBlank(message = "物流公司名称不能为空")
    private String logisticsCompany;
    
    @ApiModelProperty("收件人姓名")
    @NotBlank(message = "收件人姓名不能为空")
    private String contact;
    
    @ApiModelProperty("收件人手机号码")
    @NotBlank(message = "收件人手机号码不能为空")
    private String mobile;
    
    @ApiModelProperty("省")
    @NotBlank(message = "省份不能为空")
    private String province;
    
    @ApiModelProperty("市")
    @NotBlank(message = "城市不能为空")
    private String city;
    
    @ApiModelProperty("区")
    @NotBlank(message = "区县不能为空")
    private String town;
    
    @ApiModelProperty("街道")
    @NotBlank(message = "街道不能为空")
    private String street;
} 